
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/3
  Time: 8:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<style>
    a{
        text-decoration:none
    }
    .select{
        border: 3px solid pink;
        width: 200px;
    }
</style>
<body>
    <button><a href="adduser.jsp">新建用户</a></button>
    <button><a href="deluser.jsp">删除用户</a></button>
    <button><a href="updateuser.jsp">更新用户</a></button>
    <br>
    <hr>
    <form method="post" action="selectAll">
        <input type="submit" value="查看所有用户"></input>
    </form>

        <c:if test="${not empty users}">
            <c:forEach var="user" items="${users}">
                <div class="select">
                    id:${user.id}<br>
                    姓名:${user.username}<br>
                    性别:${user.sex}<br>
                    爱好:${user.likes[0]}${user.likes[1]}${user.likes[2]}<br>
                    班级:${user.group}
                </div>
            </c:forEach>
        </c:if>


</body>
</html>
